﻿using Hotel.Domain;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.IRepository
{
    public class HotelDBContext : DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="options">数据库选项</param>
        public HotelDBContext(DbContextOptions options) : base(options)
        {

        }

        /// <summary>
        /// The DbSet of HotelTest
        /// </summary>
        public virtual DbSet<HotelTest> HotelTests { get; set; }
        public virtual DbSet<Googds>  Googds { get; set; }
        public virtual DbSet<GoogdsType>  GoogdsTypes { get; set; }
        public virtual DbSet<GoodsLabel>  GoodsLabels { get; set; }

        public virtual DbSet<User>   Users { get; set; }
        public virtual DbSet<UserRoleInfo>    UserRoleInfos { get; set; }
        public virtual DbSet<RoleInfo>     RoleInfos { get; set; }
       
        public virtual DbSet<Permission>    Permissions { get; set; }
        public virtual DbSet<RolePermisstionInfo>    RolePermisstionInfos { get; set; }


        public virtual DbSet<RoomType> RoomTypes { get; set; }
        public virtual DbSet<RoomInfo> RoomInfos { get; set; }
        public virtual DbSet<OrderInfo> OrderInfos { get; set; }
        public virtual DbSet<MemberInfo> MemberInfos { get; set; }
    }
}
